/*
* 四川生学教育科技有限公司
* Copyright (c) 2015-2025 Founder Ltd. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Founder. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the agreements
* you entered into with Founder.
*
*/
package cn.demo.server;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WUANG (wa@sxw.cn)
 * @description TestController
 * @date 2018/6/22 16:50
 * @slogon 站在巨人的肩膀上
 * @since 2.0.0
 */
@RestController
public class TestController {

    @Value("${spring.application.name}")
    String applicationName;

    @Value("${info.profile}")
    String profileValue;

    @Value("${info.from}")
    String fromValue;

    @Value("${test}")
    String testValue;

    @RequestMapping("/test")
    public String home() {
        return "Hello World!"
                + "\n" + applicationName
                + "\n" + profileValue
                + "\n" + fromValue
                + "\n" + testValue;
    }
}